export interface LoginFormData {
  username: string
  password: string
}

interface DataType {
  token?: string
}
export interface LoginResponseData {
  code: number
  data: DataType
}

//服务器返回的用户信息类型

interface User {
  userId: number
  avatar?: string
  username: string
  desc?: string
  roles?: string[]
  buttons?: string[]
  routes?: string[]
  token: string
  message?: string
}
export interface UserInfoResponseData {
  //code: number
  data: User
  status: number
  code: number
}
